<template>
	<view>
		<view class="fixed bg-f8ff w-100 h-100 top0 left0 ov-hd-y">
			<itemTitle :item="details"></itemTitle>
			<view>
				<view class="w-100 px-2-6 pb-3 pt-1">
					<view class="w-100 h1 bg-ccc"></view>
				</view>
				
				<view class="w-100 px-5">
					<view class="font28 font500 t-20 pb-2">商品详情</view>
					<richText :rich_text="details.content"></richText>
				</view>
			</view>
			<view class="w-100 h240"></view>
		</view>
		<view class="w-100 px-4 fixed bottom0 pb-5 left0 z-999 option">
			<button class="ty-contact" type="default" open-type="contact"></button>
			<view class="w-100 f-c-c font28 t-20 font600 bg-theme h100 circle120">
					咨询小助手
			</view>
		</view>
	</view>
</template>

<script>
	import itemTitle from "../components/title.vue"
	import richText from "../components/rich-text.vue"
	export default {
		components: {
			itemTitle,
			richText
		},
		data() {
			return {
				details: {},
				money:189,
				number:1,
			}
		},
		created() {
			this.details = uni.getStorageSync("details") || {}
		},
	}
</script>
<style lang="scss" scoped>
	.show0-top{
		border-radius: 48rpx 48rpx 0 0;
	}
	.ty-contact{
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 999;
		opacity: 0;
	}
</style>